<template>
  <div class="">
    <el-container>
      <el-aside width="200px">
        <Menu></Menu>
      </el-aside>
      <el-container>
        <el-header height="70px">
          <Header></Header>
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
//将侧边栏组件注入Home组件中
import Menu from "./Menu";
import Header from "./Header";
export default {
  components: {
    Menu,
    Header
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  watch: {},
  computed: {},
  methods: {}
};
</script>
<style scoped>
.el-header {
  background-color: #42b983;
}

.el-aside {
  background: #545c64;
  height: 670px;
}
</style>
